<title>登录设置</title>
  
<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>设置</cite></a>
    <a><cite>登录设置</cite></a>
  </div>
</div>

  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">

  <!--选项卡-->
      <div class="layui-card-body">
          <div class="layui-tab layui-tab-brief" lay-filter="J_tabLi">
            <ul class="layui-tab-title">
              <li class="layui-this" lay-id="index">验证码</li>
              <li lay-id="effect">验证码策略</li>
            </ul>
            <div class="layui-tab-content">
              <div class="layui-tab-item layui-show">
          <form class="layui-form" lay-filter="J_ajaxForm" action="../config/verify" method="post">
          
      <div class="layui-form-item">
        <label class="layui-form-label">识别难度：</label>
        <div class="layui-input-block">
          <div class="layui-input-inline">
            <input type="checkbox" name="randtype[font]" value="1" lay-skin="primary" title="随机字体" {if isset($randtype['font'])}checked{/if}>
            <input type="checkbox" name="randtype[background]" value="1" lay-skin="primary" title="使用背景图片" {if isset($randtype['background'])}checked{/if}>
            <input type="checkbox" name="randtype[curve]" value="1" lay-skin="primary" title="添加混淆曲线" {if isset($randtype['curve'])}checked{/if}>
            <input type="checkbox" name="randtype[spot]" value="1" lay-skin="primary" title="添加杂点" {if isset($randtype['spot'])}checked{/if}>
          </div>
          <div class="layui-form-mid layui-word-aux">由于部分服务器对字体功能支持不友好，如果您的站点开启验证码后出现服务器不稳定现象请关闭“随机字体”</div>
        </div>
      </div>
            
         <div class="layui-form-item">
          <label class="layui-form-label">验证码内容：</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="checkbox" name="contentType[engnum]" value="1" lay-skin="primary" title="英文字符和数字">
              <input type="checkbox" name="contentType[chinese]" value="1" lay-skin="primary" title="中文字符">
            </div>
            <div class="layui-form-mid layui-word-aux">多选情况下随机出现其中一种<br>注：启用中文验证码，先要在src/repository/font目录中添加中文字体，文件名以cn_开头</div>
          </div>
        </div>
        
            <div class="layui-form-item">
              <label class="layui-form-label">验证码个数：</label>
              <div class="layui-input-block">
                <div class="layui-input-inline"><input type="text" name="contentLength" value="4" lay-verify="number" class="layui-input"></div>
                <div class="layui-form-mid layui-word-aux">验证码个数（建议设置为4个）</div>
              </div>
            </div>
            
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="J_ajax_submit_btn">提交</button>
              </div>
            </div>
            
          </form>
              </div>
              <div class="layui-tab-item">
          <form class="layui-form" lay-filter="J_ajaxForm" action="../config/verify" method="post">
          
          <div class="layui-form-item">
          <label class="layui-form-label">注册：</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="radio" name="register" value="1" title="开启" checked="">
              <input type="radio" name="register" value="0" title="关闭">
            </div>
          </div>
        </div>
            
        <div class="layui-form-item">
          <label class="layui-form-label">登录：</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="radio" name="userlogin" value="1" title="开启" checked="">
              <input type="radio" name="userlogin" value="0" title="关闭">
            </div>
          </div>
        </div>
        
        <div class="layui-form-item">
          <label class="layui-form-label">找回密码：</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="radio" name="resetpwd" value="1" title="开启" checked="">
              <input type="radio" name="resetpwd" value="0" title="关闭">
            </div>
          </div>
        </div>
            
        <div class="layui-form-item">
          <label class="layui-form-label">提问：</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="radio" name="ask" value="1" title="开启" checked="">
              <input type="radio" name="ask" value="0" title="关闭">
            </div>
          </div>
        </div>
        
        <div class="layui-form-item">
          <label class="layui-form-label">回答：</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="radio" name="answer" value="1" title="开启" checked="">
              <input type="radio" name="answer" value="0" title="关闭">
            </div>
          </div>
        </div>
        
        <div class="layui-form-item">
          <label class="layui-form-label">发布文章：</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="radio" name="article" value="1" title="开启" checked="">
              <input type="radio" name="article" value="0" title="关闭">
            </div>
          </div>
        </div>
        
        <div class="layui-form-item">
          <label class="layui-form-label">后台登录：</label>
          <div class="layui-input-block">
            <div class="layui-input-inline">
              <input type="radio" name="adminlogin" value="1" title="开启" checked="">
              <input type="radio" name="adminlogin" value="0" title="关闭">
            </div>
          </div>
        </div>
        
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="J_ajax_submit_btn">提交</button>
              </div>
            </div>
            
          </form>
              </div>
            </div>
          </div>
      </div>

      </div>
    </div>
  </div>
</div>
<script>
layui.use(['form','global'], function(){
  var form = layui.form;
  
  form.render();

});
</script>